package com.shen.my_blog.service;

import com.shen.my_blog.dao.pojo.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shen.my_blog.vo.ArticleVo;
import com.shen.my_blog.vo.Result;
import com.shen.my_blog.vo.params.ArticleParam;
import com.shen.my_blog.vo.params.PageParams;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */


public interface ArticleService extends IService<Article> {

    /**
     * 分页查询列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticles(int limit);

    Result listArchives();


    /**
     * 文章详情
     * @param articleId
     * @return
     */
    Result findArticleById(Long articleId);

    /**
     * 发布文章点击按钮
     * @param articleParam
     * @return
     */
    Result publish(ArticleParam articleParam);
}
